﻿namespace Prectise02
{
    internal class Program
    {/// <summary>
    /// 汉诺塔问题
    /// </summary>
    /// <param name="args"></param>
        static void Main(string[] args)
        {
            Move(3, "A", "B", "C");
        }
        static void Move(int number,string source,string destination,string other)
        {
            Move(number - 1, other, source, destination);
            Console.WriteLine("Move"${ number}
            "to"${ destination})
            Move(number - 1, destination, source, other);

        }
    }
}
